package com.imy.luascript.app.ui.main.fragment.project;

import android.app.Activity;
import android.view.View;

import com.imy.common.base.adapter.BaseDelegate;
import com.imy.common.view.recyclerview.adpater.BaseLoadMoreAdapter;
import com.imy.luascript.app.data.general.ProjectItem;

import java.util.List;

public class ProjectAdapter extends BaseLoadMoreAdapter<ProjectItem> {
  private ProjectDelegate projectDelegate;
  private BackDelegate backDelegate;
  public ProjectAdapter(Activity activity, List<ProjectItem> items) {
    super(activity, items);
    //添加一个back的
    backDelegate =new BackDelegate(activity);
    addDelegate(backDelegate);
    projectDelegate = new ProjectDelegate(activity);
    addDelegate(projectDelegate);
  }

  public BackDelegate getBackDelegate() {
    return backDelegate;
  }

  public ProjectDelegate getProjectDelegate() {
    return projectDelegate;
  }
}
